﻿@{
    ViewBag.Title = "Form";
    Layout = "~/Views/Shared/_Form.cshtml";
}
<script>
    var keyValue = $.request("keyValue");
    $(function () {
        if (!!keyValue) {
            $.ajax({
                url: "/SiteManage/PriceSchedule/GetFormJson",
                data: { keyValue: keyValue },
                dataType: "json",
                async: false,
                success: function (data) {
                    $("#form1").formSerialize(data);
                }
            });
        }
    });
    function submitForm() {
        if (!$('#form1').formValid()) {
            return false;
        }
        $.submitForm({
            url: "/SiteManage/PriceSchedule/SubmitForm?keyValue=" + keyValue,
            param: $("#form1").formSerialize(),
            success: function () {
                $.currentWindow().$("#gridList").trigger("reloadGrid");
            }
        })
    }
</script>

<form id="form1">
    <div style="padding-top: 20px; margin-right: 20px;">
        <table class="form">
            <tr>
                <th class="formTitle">场地编号</th>
                <td class="formValue">
                    <input id="F_SiteId" name="F_SiteId" type="text" class="form-control required" placeholder="请录入场地编号" />
                </td>
            </tr>
            <tr>
                <th class="formTitle">空间编号</th>
                <td class="formValue">
                    <input id="F_SpaceId" name="F_SpaceId" type="text" class="form-control required" placeholder="请录入空间编号" />
                </td>
            </tr>
            <tr>
                <th class="formTitle">日期</th>
                <td class="formValue">
                    <input id="F_ScheduleDate" name="F_ScheduleDate" type="text" class="form-control input-wdatepicker required" onfocus="WdatePicker()" placeholder="请录入日期" />
                </td>
            </tr>
            <tr>
                <th class="formTitle">云space价格</th>
                <td class="formValue">
                    <input id="F_YunPrice" name="F_YunPrice" type="text" class="form-control required" placeholder="请录入云space价格" />
                </td>
            </tr>
            <tr>
                <th class="formTitle">市场价格</th>
                <td class="formValue">
                    <input id="F_MarketPrice" name="F_MarketPrice" type="text" class="form-control required" placeholder="请录入市场价格" />
                </td>
            </tr>
            <tr>
                <th class="formTitle">场地底价</th>
                <td class="formValue">
                    <input id="F_FloorPrice" name="F_FloorPrice" type="text" class="form-control required" placeholder="请录入场地底价" />
                </td>
            </tr>
        </table>
    </div>
</form>


